package 多线程练习;

import java.lang.reflect.Array;
import java.util.Arrays;

public  class xc implements Runnable {
    public int s=0;

    @Override
    public void run() {
        for (int i = 1; i <= 10000; i++) {
                s+=i;
        }
        System.out.println(s);
    }

    public static void main(String[] args) {
        xc x = new xc();
        Thread x1 = new Thread(x);
//        x1.start();
        int m;
        m = 1;
        for (int i = 100; i >= 1 ; i--) {
            m*=i;
        }
        System.out.println("阶乘的结果是"+ m);
//        System.out.println("5"+1+2);
//        System.out.println(1+"5"+2);
//        System.out.println(1+2+"5");
//        System.out.println("5"+1+2+3+4);
//        System.out.println(1+2+"5"+3+4);
//        System.out.println(1+2+3+4+"5");
//        int a[] = {3,1,4,2,6,0,5,9,7};
//        Arrays.sort(a,0,6);
//        System.out.println(Arrays.toString(a));
//        int b[] = {3,1,4,2,6,0,5,9,7};
//        Arrays.sort(b,1,6);
//        System.out.println(Arrays.toString(b));
//        int c[] = {3,1,4,2,6,0,5,9,7};
//        Arrays.sort(c,0,7);
//        System.out.println(Arrays.toString(c));
//        int d[] = {3,1,4,2,6,0,5,9,7};
//        Arrays.sort(d,1,7);
//        System.out.println(Arrays.toString(d));
    }

}
